import { GetMoveListRequest } from "../../api"
import { GETMOVIELIST } from "../constants/movieConstants"
import store from "../store"

export function getMovieList() { 
    return async()=>{
        const re = await GetMoveListRequest()
        store.dispatch({
            type: GETMOVIELIST,
            data:re.data.data.list
        })
    }
}